package com.zxg.util;

public class DaoConfigs {

  /**
   * 通用状态类型
   */
  public static class StatusType {
    public final static Integer DELETE = -1; // 删除
    public final static Integer UNUSED = 0;  // 禁用
    public final static Integer NORMAL = 1;  // 正常
  }

  public static class ItemStatusType {
    public final static Integer REVIEW_FAILURE = -2; // 审核未通过
    public final static Integer DELETE         = -1; // 已删除
    public final static Integer EDITING        = 0;  // 编辑中
    public final static Integer REVIEW         = 1;  // 审核中
    public final static Integer PUBLISH        = 2;  // 已发布
  }

  /**
   * 通用开关状态
   */
  public static class BooleanType {
    public final static Integer TRUE  = 1; // 必选 or 完成认证 or 已绑定微信
    public final static Integer FALSE = 0; // 非必选 or 未认证 or 未绑定微信
  }

  public static class QualifiedType {
    public final static Integer NONE  = 0;  // 未认证
    public final static Integer TRUE  = 1;  // 完成认证
    public final static Integer FALSE = -1; // 认证不通过
  }

  /**
   * 用户角色类型
   */
  public static class RoleType {
    public final static Integer ADMIN  = 1; // 运营
    public final static Integer SELLER = 2; // 卖家
    public final static Integer BUYER  = 4; // 买家
  }

  /**
   * 订单状态
   */
  public static class BillingType {
    public final static Integer CANCEL          = 0; // 订单已取消
    public final static Integer WAIT_CONFIRM    = 1; // 已下单，待确认
    public final static Integer WAIT_PAY        = 2; // 已确认，待付款
    public final static Integer WAIT_SEND       = 3; // 已付款，待发货
    public final static Integer WAIT_RECEIVE    = 4; // 已发货，待收货
    public final static Integer SUCCESS         = 5; // 买家确认收货
    public final static Integer PAYED_TO_SELLER = 6; // 已打款给卖家
  }

  /**
   * type 0全部 1待审核卖家 2 已审核卖家 3 交易员 4 买家
   */
  public static class UserType {
    public final static Integer ALL                 = 0; // 全部
    public final static Integer SELLER_WAIT_CONFIRM = 1; // 待审核卖家
    public final static Integer SELLER              = 2; // 已审核卖家
    public final static Integer TRADER              = 3; // 交易员
    public final static Integer BUYER               = 4; // 买家
  }

  /**
   * 订单支付类型
   */
  public static class PayType {
    public final static Integer ALIPAY = 1; // 支付宝
    public final static Integer B2B    = 2; // 对公打款
  }

  /**
   * 宝贝计量单位
   */
  public static class UnitType {
    public final static Integer T  = 1; // 吨
    public final static Integer KG = 2; // 千克
  }

  /**
   * 属性类型
   */
  public static class PropertyType {
    public final static Integer RADIO      = 1; // 单选
    public final static Integer CHECKBOX   = 2; // 多选
    public final static Integer INPUT_TEXT = 3; // 输入框
  }

  /**
   * 属性值类型
   */
  public static class PropertyValueType {
    public final static Integer SELECTED = 0; // 默认选择型
    public final static Integer OTHER    = 1; // 其他
  }

  /**
   * 货运类型
   */
  public static class ShipType {
    public final static Integer SELF  = 1; // 自提
    public final static Integer WULIU = 2; // 物流
    public final static Integer OTHER = 3; // 其它
  }

}
